#include <stdio.h>
#include <math.h>

int main ()
{
	double c = 0;
	double f = 0;
	
	scanf("%lf",&f);
	c = 5*(f-32)/9;
	printf("%.5lf",c);
	
	return 0; 
}
